#ifndef __LOGLEVEL__
#define __LOGLEVEL__

#include <iostream>
#include <string>

namespace log_p
{
    class log_level
    {
    public:
        enum values
        {
            UNNKOW = 0,
            DEBUG,
            INFO,
            WARN,
            FAIL,
            OFF
        };

        static std::string log_tostring(int it)
        {
            switch (it)
            {
            case log_level::values::DEBUG:
                return "DEBUG";
            case log_level::values::INFO:
                return "INFO";
            case log_level::values::WARN:
                return "WARN";
            case log_level::values::FAIL:
                return "FATIL";
            case log_level::values::OFF:
                return "OFF";

            default:
                return "UNKOW";
            }
            return "";
        }
    };
}

#endif
